<%-- 
    Document   : management_product
    Created on : 2014/4/23, 下午 04:29:32
    Author     : Gjun
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
﻿
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>產品管理中心</title>
        <link rel="stylesheet" href="style/management_style.css?v=2">
        <link rel="stylesheet" href="style/minippfix.css">
        <script src="/MyStruts2/scripts/jquery-1.11.0.min.js"></script>
        <% NWDB.NWDB mydb = new NWDB.NWDB();
            NWDB.IProduct ip = new NWDB.ImplProduct(mydb.getConnection());
            mydb.setIProduct(ip);
            int totalPage = mydb.GetAllProductCount();%>
        <script type="text/javascript">
            $(document).ready(function() {
                $("#SearchBtn").click(function() {

                    if ($("#IDText").val().length > 0) {
                        var a = $("#IDText").val();
                        var b = <%=totalPage%>;
                        if (a > b || a <= 0)
                            alert('無此商品');
                        else
                            window.location = "/playdoll/backstage/product/productInfo?id=" + $("#IDText").val();
                    }
                });
            });
         
        </script>
    </head>	
    <body>	
    <center>	
        <table>
            <tr>
            <h1>產品管理中心</h1> 	
            </tr>
            <tr>    
                <td><h3><a href="/playdoll/backstage/product/productInfo">新增產品資料</a></h3></td>
                <td><h3>維護產品資料：</h3></td><td></td>
            </tr>
        </table>
        請輸入欲查詢及修改的產品號：
        <input id="IDText" type="text" value="" />&nbsp;&nbsp;
        <input id="SearchBtn" type="button" value="搜尋" />
    </center>	
</body>
</html>

<!-- <title>Mini Collection for Prefix & Postfix Input Form | Webstuffshare.com</title>
<script type="text/javascript"></script>
  <script src="http://cpro.baidustatic.com/cpro/ui/f.js" type="text/javascript"></script> -->


